<?php
/* @var $this HrPositionAttributeController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Hr Position Attributes',
);

$this->menu=array(
	array('label'=>'Create HrPositionAttribute', 'url'=>array('create')),
	array('label'=>'Manage HrPositionAttribute', 'url'=>array('admin')),
);
?>

<span class="page_h3">职位描述</span>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'id'=>'user-grid',
    'dataProvider'=>$dataProvider,
	'columns'=>array( 
		'id', 
		'category',
		array(
			'name' => 'category',
			'value'=> 'HrPositionAttribute::getCategoryName($data->category)',
		),
		'title',
		array(            
            'class'=>'CButtonColumn',
			'template'=>'{update}{del}',
			'buttons'=>array(
                    'update' => array(
                            'label'=>'审核',     
                            'url'=>'Yii::app()->controller->createUrl("hrPositionAttribute/update",array("id"=>$data->primaryKey))',       
                            'imageUrl'=>Yii::app()->request->baseUrl.'/global/img/icons/page_white_edit.png',  
                            'options'=>array('style'=>'cursor:pointer;' , "target"=>"_blank"), 
                            'visible'=>'true',
                    ),
					'del' => array(
                            'label'=>'删除', 
                            'url'=>'Yii::app()->controller->createUrl("hrPositionAttribute/delete",array("id"=>$data->primaryKey))',     
                            'imageUrl'=>Yii::app()->request->baseUrl.'/global/img/icons/cross.png',  
                            'options'=>array('style'=>'cursor:pointer;','confirm'=>'删除此记录？'), 
							'visible'=>'true',
                    )
            ),
			
        ),
		), 
		
));
?>